package com.driving.code.entity;

public enum Status {
    SUCCESS(1,"请求成功"),
    ERROR(0,"服务器出现异常");

    int code;
    String message;

    Status(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
